package com.hqyj.springBoot.modules.test.service;

import com.hqyj.springBoot.modules.common.entity.ResultEntity;
import com.hqyj.springBoot.modules.common.entity.SearchBean;
import com.hqyj.springBoot.modules.test.entity.Student;
import org.springframework.data.domain.Page;

public interface StudentService {

    ResultEntity<Student> insertStudent(Student student);

    ResultEntity<Student> updateStudent(Student student);

    ResultEntity<Object> deleteStudentById(int studentId);

    Student selectStudentByStudentId(int studentId);

    Page<Student> getStudentsBySearchBean(SearchBean searchBean);

    Student getStudentByName(String studentName);
}
